package com.hbnu.sync;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@MapperScan("com.hbnu.sync.mapper")
//启动事务
@EnableTransactionManagement(proxyTargetClass = true)
public class SyncUserDataApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext application = SpringApplication.run(SyncUserDataApplication.class, args);
    }
}